#!/bin/sh
#data_date=$1

# 1添加分区
ADD_PARTITION_SQl="
alter table jtp_tmp.ods_t_order add if not exists partition (dt = '${data_date}') ;
"
# 2执行语句

/opt/module/spark/bin/beeline -u jdbc:hive2://node101:10001 -n bwie -e "${ADD_PARTITION_SQl}"